package com.mxchip.livestar.ui.network.wifi.adapter.base;


import android.view.View;
import android.widget.TextView;

import com.mxchip.livestar.R;
import com.mxchip.livestar.ui.network.wifi.adapter.base.i.BaseRecyclerViewHolder;
import com.mxchip.livestar.ui.network.wifimanager.IWifi;


/**
 * author  : hacknife
 * e-mail  : 4884280@qq.com
 * github  : http://github.com/hacknife
 * project : MVVM
 */
public class WifiViewHolder extends BaseRecyclerViewHolder<IWifi> {


    private final TextView tv_name;
    private final TextView tv_desc;

    public WifiViewHolder(View itemView) {
        super(itemView);
        tv_name = itemView.findViewById(R.id.tv_name);
        tv_desc = itemView.findViewById(R.id.tv_desc);
    }


    @Override
    public void bindData(IWifi entity) {
        tv_name.setText(entity.name());
        tv_desc.setText(entity.description2());
    }


}